home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Found / ODUtils / ODNew.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-17  |  939 b   |  46 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ODNew.h
  3.  
  4.     Contains:    Inline versions of operator new and operator delete for OpenDoc
  5.  
  6.     Owned by:    Nick Pilch
  7.  
  8.     Copyright:    © 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <2>     5/24/96    jpa        1.1MRD: pragma internal eliminates NOPs.
  13.  
  14.     In Progress:
  15.         
  16. */
  17.  
  18. #ifndef _ODNEW_
  19. #define _ODNEW_
  20.  
  21. #include <StdDef.h>
  22.  
  23. #ifndef _ODMEMORY_
  24. #include "ODMemory.h"
  25. #endif
  26.  
  27. //==============================================================================
  28. // Global function declarations
  29. //==============================================================================
  30.  
  31. #ifdef PRAGMA_INTERNAL_SUPPORTED
  32. #pragma internal on
  33. #endif
  34.  
  35.  
  36. void* operator new(size_t size, ODMemoryHeapID);        // from a specific heap
  37. void* operator new(size_t);                            // from the client heap
  38. void operator delete(void*);                        // return memory to pool 
  39.  
  40.  
  41. #ifdef PRAGMA_INTERNAL_SUPPORTED
  42. #pragma internal reset
  43. #endif
  44.  
  45. #endif
  46.